package se.sics.drsm.simulation.message;

import se.sics.drsm.model.DRSMAddress;
import se.sics.kompics.network.Message;
import se.sics.kompics.network.Transport;

public class DRSMSimMessage extends Message {

    /**
     *
     */
    private static final long serialVersionUID = 6022360513060679339L;

    public final DRSMAddress src;
    public final DRSMAddress dst;

    public DRSMSimMessage(DRSMAddress src, DRSMAddress destination) {
        super(src.getPeerAddress(), destination.getPeerAddress());
        this.src = src;
        this.dst = destination;
    }

    public DRSMSimMessage(DRSMAddress src, DRSMAddress destination, boolean highPriority) {
        super(src.getPeerAddress(), destination.getPeerAddress(), Transport.TCP, highPriority);
        this.src = src;
        this.dst = destination;
    }
}
